5
240 200
100 300
380 300
80 520
400 520
0 1 1 1 1
1 0 1 0 0
1 1 0 0 0
1 0 0 0 1
1 0 0 1 0
0
